package com.zpark.cloud.alibaba.controller.sentinel;

import com.zpark.cloud.alibaba.entity.Dept;
import com.zpark.cloud.alibaba.utils.ResponseResult;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @PackageName: com.zpark.cloud.alibaba.controller.sentinel
 * @ClassName: ConsumerControllerSentinel
 * @Description:
 * @author: RZS
 * @date: 2023/6/21  15:49
 */
public class ConsumerControllerSentinel {

    public static ResponseResult<Dept> findByIdSentinel(@PathVariable("id") Integer id, Throwable e){
        System.out.println(id + ", " + e);
        return new ResponseResult<>(503, "error", null);
    }

    public static ResponseResult<List<Dept>> findAllSentinel(){
        return new ResponseResult<>(503, "error, find_all", null);
    }
}
